//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

import java.util.Random;
import java.util.Scanner;

public class test {


    public static void main1(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入你要判断的年份");
        int year = sc.nextInt();
        if (year % 100 == 0) {
            if (year % 400 == 0) {
                System.out.println("世纪闰年");
            } else {
                System.out.println("不是闰年");
            }
        } else if (year % 4 == 0) {
            System.out.println("是闰年");
        } else {
            System.out.println("不是闰年");
        }

    }

    public static void main2(String[] args) {
        System.out.println("请输入你要输入的值");
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        switch (a) {
            case 1:
                System.out.println("星期一");
                break;
            case 2:
                System.out.println("星期二");
                break;
            case 3:
                System.out.println("星期三");
                break;
            case 4:
                System.out.println("星期四");
                break;
            case 5:
                System.out.println("星期五");
                break;
            case 6:
                System.out.println("星期六");
                break;
            case 7:
                System.out.println("星期");
                break;
            default:
                System.out.println("输入有误");
        }

    }

    public static void main3(String[] args) {
        int a = 1;

        int sum;
        for(sum = 0; a <= 100; ++a) {
            sum += a;
        }

        System.out.println(sum);
        int b = 1;

        int res;
        for(res = 1; b <= 5; ++b) {
            res *= b;
        }

        System.out.println(res);
        int i = 1;

        int re;
        int sunodd;
        int idd;
        for(re = 0; i <= 5; ++i) {
            sunodd = 1;

            for(idd = 1; sunodd <= i; ++sunodd) {
                idd *= sunodd;
            }

            re += idd;
        }

        System.out.println(re);
        sunodd = 0;

        for(idd = 1; idd <= 100; idd += 2) {
            sunodd += idd;
        }

        System.out.println(sunodd);
        int sumeve = 0;

        for(int eve = 2; eve <= 100; eve += 2) {
            sumeve += eve;
        }

        System.out.println(sumeve);
        int j = 1;

        while(j <= 100) {
            if (j % 15 != 0) {
                ++j;
            } else {
                System.out.println(j);
                ++j;
            }
        }

    }

    public static void main4(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入你第一个数");
        int a = sc.nextInt();
        System.out.println("请输入你第二个数");
        int b = sc.nextInt();
        int sum = 0;

        int re;
        for(re = a; re <= b; ++re) {
            sum += re;
        }

        System.out.println(sum);
        re = 0;

        for(int i = 1; i <= 5; ++i) {
            int res = 1;

            for(int j = 1; j <= i; ++j) {
                res *= j;
            }

            re += res;
        }

        System.out.println(re);
    }

    public static void main5(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入你要输入的次数");
        int a = sc.nextInt();
        int num = 1;

        do {
            System.out.println("爱你第" + num + "次");
            ++num;
        } while(num <= a);

    }

    public static void main6(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入你的姓名");
        String name = sc.nextLine();
        System.out.println("请输入你的性别");
        String sex = sc.nextLine();
        System.out.println("请输入你的年龄");
        int age = sc.nextInt();
        System.out.println("请输入你的工资");
        int salary = sc.nextInt();
        System.out.println("----------------------");
        System.out.println("信息如下");
        System.out.println("姓名" + name + "\n年龄" + age + "\n性别" + sex + "\n工资" + salary);
    }

    public static void main7(String[] args) {
        Random random = new Random();
        Scanner sc = new Scanner(System.in);
        int guess = random.nextInt(100);
        System.out.println(guess);

        while(true) {
            while(true) {
                System.out.println("请输入你要猜的数字(1-100)之内");
                int gussme = sc.nextInt();
                if (gussme < guess) {
                    System.out.println("猜的数字过小");
                } else {
                    if (gussme <= guess) {
                        System.out.println("恭喜你猜对了");
                        sc.close();
                        return;
                    }

                    System.out.println("猜的数字过大");
                }
            }
        }
    }

    public static void main8(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入你的年龄");
        int age = sc.nextInt();
        if (age <= 18) {
            System.out.println("少年");
        } else if (age <= 28) {
            System.out.println("青年");
        } else if (age <= 55) {
            System.out.println("中年");
        } else {
            System.out.println("老年");
        }

    }

    public static void main9(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入你要判断的数");
        int su = sc.nextInt();

        int i;
        for(i = 2; i < su; ++i) {
            if (su % i == 0) {
                System.out.println("" + su + "不是素数");
                break;
            }
        }

        if (i == su) {
            System.out.println("" + su + "是素数");
        }

        int j = 0;
        int a = 0;

        for(j = 2; j <= 100; ++j) {

            for(a = 2; a <= j && j % a != 0; ++a) {
            }

            if (j == a) {
                System.out.println(a);
            }
        }

    }

    public static void main10(String[] args) {
        for(int i = 1000; i <= 2000; ++i) {
            if (i % 4 == 0 && i % 100 != 0 || i % 400 == 0) {
                System.out.println(i);
            }
        }

    }

    public static void main11(String[] args) {
        int i;
        int j;
        for(i = 1; i <= 9; ++i) {
            for(j = 1; j <= i; ++j) {
                System.out.print("" + i + "*" + j + "=" + i * j + " ");
            }

            System.out.println();
        }

        for(i = 1; i <= 9; ++i) {
            for(j = 1; j <= i; ++j) {
                System.out.print("" + j + "*" + i + "=" + j * i + " ");
            }

            System.out.println();
        }

    }

    public static void main(String[] args) {
        for(int i = 0; i < 999; ++i) {
            int a = i / 100;
            int b = i / 10 % 10;
            int c = i % 10;
            int temp = a * a * a + b * b * b + c * c * c;
            if (temp == i) {
                System.out.println(i);
            }
        }

    }


}

